
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[EBAS_SIKKERHED_OBJEKT_TYPE]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[EBAS_SIKKERHED_OBJEKT_TYPE]
GO

CREATE TABLE [dbo].[EBAS_SIKKERHED_OBJEKT_TYPE] (
	[GUID] [uniqueidentifier] ROWGUIDCOL NOT NULL ,
	[NAVN] [varchar] (255) COLLATE Danish_Norwegian_CI_AS NOT NULL 
) ON [PRIMARY]
GO

ALTER TABLE [dbo].[EBAS_SIKKERHED_OBJEKT_TYPE] WITH NOCHECK ADD 
	CONSTRAINT [PK_EBAS_SIKKERHED_OBJEKT_TYPE] PRIMARY KEY  CLUSTERED 
	(
		[GUID]
	)  ON [PRIMARY] 
GO

INSERT INTO EBAS_SIKKERHED_OBJEKT_TYPE
	SELECT NEWID(), 'EBASWeb'	
INSERT INTO EBAS_SIKKERHED_OBJEKT_TYPE
	SELECT NEWID(), 'EBASTool'
INSERT INTO EBAS_SIKKERHED_OBJEKT_TYPE
	SELECT NEWID(), 'EBASAdmin'	
GO	
	